Skip to content

Don’t implicitly cancel requests when an edit is detected#2417

Draft
ahoppen wants to merge 2 commits intoswiftlang:mainfrom
ahoppen:no-implicit-cancellation
Draft

Don’t implicitly cancel requests when an edit is detected#2417
ahoppen wants to merge 2 commits intoswiftlang:mainfrom
ahoppen:no-implicit-cancellation

Conversation

@ahoppen
Copy link
Member

@ahoppen ahoppen commented Jan 4, 2026

Depends on #2416


Instead, use staleRequestSupport.retryOnContentModified as an indicator which requests should return a ContentModified error when the document is modified. This fixes #2136 by no longer implicitly cancelling inlayHints in Helix while still implicitly cancelling semantic tokens request, which was the motivation for #1629.

Fixes #2136

Instead, use `staleRequestSupport.retryOnContentModified` as an indicator which requests should return a `ContentModified` error when the document is modified. This fixes swiftlang#2136 by no longer implicitly cancelling inlayHints in Helix while still implicitly cancelling semantic tokens request, which was the motivation for swiftlang#1629.

Fixes swiftlang#2136
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Different LSP errors for neovim / helix

1 participant